<?php

namespace App\Policies;

use App\Good;
use App\User;
use Illuminate\Auth\Access\HandlesAuthorization;

class GoodsPolicy
{
    use HandlesAuthorization;

    /**
     * Create a new policy instance.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }
    //判断是否打折
    public function charge(User $user){
        return $user->is_recharge||$user->team_level_id;
    }
}
